﻿using Crawler.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Crawler.IRepositories
{
    public interface IRepository<Entity> where Entity: BaseModel
    {

        int Add(Entity t);
        int Update(Entity t);
        int Remove(Entity t);
        Entity Find(int id);
        IList<Entity> Find(Expression<Func<Entity, bool>> expression);
        IEnumerable<Entity> GetAll();
    }
}
